# Contributor: Leon ROUX <leon.roux@federate.us>
# Maintainer: Leon ROUX <leon.roux@federate.us>
pkgname=sc3-plugins
pkgver=3.13.0
pkgrel=1
pkgdesc="Community plugins for SuperCollider"
url="https://supercollider.github.io/sc3-plugins/"
arch="x86_64 x86 aarch64 armv7 armhf" # blocked by supercollider
license="GPL-3.0-or-later"
makedepends="
	cmake
	fftw-dev
	samurai
	supercollider-dev
	"
source="https://github.com/supercollider/sc3-plugins/releases/download/Version-$pkgver/sc3-plugins-$pkgver-Source.tar.bz2"
builddir="$srcdir/sc3-plugins-$pkgver-Source"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DSUPERNOVA=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
4a89bb7d76d60983a8c5ea6560dc9993f585e7dc47593adc2686b772cdb7649423e2cf2c170340c0c7ee16d4a6348877a6572faacfc593a9075da60b9a06988f  sc3-plugins-3.13.0-Source.tar.bz2
"
